package com.tgit.sso.paltform.central.entity;

import lombok.Data;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotEmpty;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * ClassName: ReqSendEmail
 * date: 2019/11/25 20:30
 * Description: 游戏发送
 * @author fanzj@tgit.com
 * @since JDK 1.8
 */
@Data
public class ReqSendEmail implements Serializable {
    private static final long serialVersionUID = 600649166539793727L;

    @Email(message = "邮箱格式不正确")
    @NotEmpty(message = "邮箱格式不正确")
    private String email;

    //1-注册，2修改密码
    @Min(1)
    @Max(2)
    @NotNull(message = "不能为空")
    private Integer type;

    @NotEmpty(message = "用户名不能为空")
    private String userName;
}
